import * as types from '../actionTypes/userTypes';
const initState = {};

const user = (state = initState, action) => {
  switch (action.type) {
    case types.USER_INFO:
      return action.payload;
    case types.USER_CLEANINFO:
      return initState;
    default:
      return state;
  }
};

export default user;
